package org.rockyang.shardingjdbc.mybatisplus.common.service;

import org.rockyang.shardingjdbc.mybatisplus.common.model.Order;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zhenwq
 * @since 2023-05-05
 */
public interface IOrderService extends IService<Order> {

    /**
     * add a new order
     * @param order
     * @return update affect rows
     */
    Integer add(Order order);

    /**
     * select all orders
     * @return
     */
    List<Order> selectAll();
}
